package com.huixh.train.member.domain;

import java.util.Date;

/**
 * @author huixh
 */
public class SmsVerificationCodes {
    private Long id;

    private String phoneNumber;

    private String verificationCode;

    private Integer validityPeriod;

    private Boolean isUsed;

    private String businessType;

    private Date sendTime;

    private Date useTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getVerificationCode() {
        return verificationCode;
    }

    public void setVerificationCode(String verificationCode) {
        this.verificationCode = verificationCode;
    }

    public Integer getValidityPeriod() {
        return validityPeriod;
    }

    public void setValidityPeriod(Integer validityPeriod) {
        this.validityPeriod = validityPeriod;
    }

    public Boolean getIsUsed() {
        return isUsed;
    }

    public void setIsUsed(Boolean isUsed) {
        this.isUsed = isUsed;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public Date getUseTime() {
        return useTime;
    }

    public void setUseTime(Date useTime) {
        this.useTime = useTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", phoneNumber=").append(phoneNumber);
        sb.append(", verificationCode=").append(verificationCode);
        sb.append(", validityPeriod=").append(validityPeriod);
        sb.append(", isUsed=").append(isUsed);
        sb.append(", businessType=").append(businessType);
        sb.append(", sendTime=").append(sendTime);
        sb.append(", useTime=").append(useTime);
        sb.append("]");
        return sb.toString();
    }
}